package com.java.comprehensive.arithmetic.leecode.easy;

public class LeetCode_459 {


    public static boolean repeatedSubstringPattern(String s) {
        String doubleS = s + s;
        String substring = doubleS.substring(1, doubleS.length() - 1);
        return substring.contains(s);
    }

    public static void main(String[] args) {
        String s = "abcabc";
        System.out.println(repeatedSubstringPattern(s));
    }
}
